package tr.edu.metu.is.mega.client.menu;

/**
 * Data structure class for menu components.
 */
public class MenuComponent {

    private String id;

    private String label;

    private boolean menu;

    /**
     * Default constructor.
     * 
     * @param id menu id
     * @param label label
     * @param menu menu/menu item indicator
     */
    public MenuComponent(String id, String label, boolean menu) {
        this.id = id;
        this.label = label;
        this.menu = menu;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return the menu
     */
    public boolean isMenu() {
        return menu;
    }

    /**
     * @param menu the menu to set
     */
    public void setMenu(boolean menu) {
        this.menu = menu;
    }

}
